package com.hry.ssm.result;

import lombok.Data;

@Data
public class ResponseResult <T>{
    private String msg;
    private int status;
    private T data;
    public static <T> ResponseResult <T> success(T data ){
        ResponseResult<T> result = new ResponseResult<>();
        result.setMsg(ResponseCode.SUCCESS.getMsg());
        result.setStatus(ResponseCode.SUCCESS.getStatus());
        result.setData(data);
        return result;
    }
}
